#include <stdio.h>
int main()
{
    int arr[10] = { 0 };
    int i = 0;
    int sum = 0;
    int avg = 0;
    for (i = 0;i < 10;i++)
    {
        scanf_s("%d\n", &arr[i]);
    }
    for (i = 0;i < 10;i++)
    {
        sum = sum + arr[i];
        printf("%d\n", sum);
    }
    printf("\nsum=%d\n", sum);
    avg = sum / 10;
    printf("\navg=%d\n", avg);
    return 0;
}





